<div class="form">
    <?php $this->render('cmswidgets.views.notification'); ?>
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'slide-form',
        'enableAjaxValidation' => true,
        'htmlOptions' => array('enctype' => 'multipart/form-data'),
    ));
    ?>

    <?php echo $form->errorSummary($model); ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'name'); ?>
        <?php echo $form->textField($model, 'name'); ?>
        <?php echo $form->error($model, 'name'); ?>
    </div>        
    <?php
    $content_resources = Slide::Resources();
    $type = 'product';
    $this->render('cmswidgets.views.slide.resource_form_widget', array('model' => $model, 'type' => $type, 'content_resources' => $content_resources, 'slide_id' => $slide_id)); //,'content_resources'=>$content_resources
    ?>   
    <div class="row">
        <?php echo $form->labelEx($model, 'slide_link'); ?>
        <?php echo $form->textField($model, 'slide_link'); ?>
        <?php echo $form->error($model, 'slide_link'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'slide_short'); ?>
        <?php echo $form->textArea($model, 'slide_short', array('style' => 'width')); ?>
        <?php echo $form->error($model, 'slide_short'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'slide_order'); ?>
        <?php echo $form->textField($model, 'slide_order'); ?>
        <?php echo $form->error($model, 'slide_order'); ?>
    </div>
    <div class="row">
        <?php echo $form->labelEx($model, 'slide_show'); ?>
        <?php echo $form->dropDownList($model, 'slide_show', ConstantDefine::getObjectCommentStatus()); ?>
        <?php echo $form->error($model, 'slide_show'); ?>
    </div>
    <div class="row buttons">
        <?php echo CHtml::submitButton(t('cms', 'Save'), array('class' => 'bebutton')); ?>
    </div>        
    <?php $this->endWidget(); ?>  
</div>